package com.woniuxy.microfixeddepositserver.service;

import com.woniuxy.bean.BillBean;
import com.woniuxy.bean.ResultBean;
import com.woniuxy.microfixeddepositserver.bean.FixedTimeDepositBean;
import com.woniuxy.microfixeddepositserver.bean.ProductDateInfo;
import com.woniuxy.microfixeddepositserver.bean.detail.OutterRegularBean;
import com.woniuxy.microfixeddepositserver.bean.detail.OwnRegularBean;
import com.woniuxy.microfixeddepositserver.bean.detail.RegularQuery;

import java.util.List;

/**
 * @author: masterhai
 * @date: 2021/4/12:10:06
 * @description:
 */

public interface IRegularService {
    //购买定期产品
    ResultBean buyRegular (BillBean billBean);

    //获取所有购买的定期产品收益信息
    ResultBean getRegularEarnings (String userName);

    //根据当前购买日期计算产品的收益及结算日期信息
    ProductDateInfo computeDate (FixedTimeDepositBean fixedTimeDepositBean, Integer fid);


    //向用户定期资产表中插入数据
    void insertAsset (ProductDateInfo productDateInfo, String fName, String username, Integer fid, Double money, Integer choose, Double yieldRates, Long orderNumber);

    //出售定期产品
    ResultBean sellRegular (BillBean billBean);

    //根据id查询定期产品详情
    ResultBean getProductDeatil (RegularQuery regularQuery);

    ResultBean findBuyRegular (String memberName);

    ResultBean getMoney (Integer pid,Integer fid);
}
